

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author Unicor Lorica
 */
public class suma {
    private Integer num1 ;
    private Integer num2 ;
    Object Resta;

    public suma(){
    num1=0;
    
 }   
    public void setnum1(Integer o){
        num1=0;
    }
    public Integer getnum1(){
        return num1;     
    }
    public void setnum2(Integer p){
        num2=p;
    }
    public Integer getnum2(){
       return num2;
    }
    public Integer calsuma(){
     Integer suma=0;
     suma=num1+num2;
     return suma;
    }

    public Integer Resta () {
        Integer restaa=0;
        restaa=num1-num2;
        return restaa;
    }
    
    public String positvo () {
     String d="";
        if (num1 > 0); 
      d="Numero positivo";          
      return d;
    }
}
